
<style type="text/css">
    .content {
        padding: 25px 20px;
    }

    /* 订单详情 */
    .order-detail .order-block {
        height: 31px;
        line-height: 31px;
        background: #e8edf0;
        border-radius: 13px;
        font-size: 14px;
        text-align: center;
        position: relative;
        margin-bottom: 50px;
    }

    .order-detail .order-block:before,
    .order-detail .order-block:after {
        content: "";
        position: absolute;
        z-index: 2;
        left: 0;
        top: 0;
        bottom: 0;
        border-radius: 13px;
        background: #18bc9c;
    }

    .order-detail .order-block:after {
        background: #4dc7af;
        z-index: 1;
    }

    .order-detail .order-block.progress-100:before {
        width: 50%;
    }

    .order-detail .order-block.progress-100:after {
        width: 50%;
    }

    .order-detail .order-block.progress-200:before {
        width: 100%;
    }

    .order-detail .order-block.progress-200:after {
        width: 100%;
    }

    .order-detail .order-block.progress-300:before {
        width: 75%;
    }

    .order-detail .order-block.progress-progress-300:after {
        width: 75%;
    }

    .order-detail .order-block.progress-400:before {
        width: 100%;
    }

    .order-detail .order-block.progress-400:after {
        width: 100%;
    }



    .order-detail .order-block.progress-400 li:nth-child(5) {
        color: #fff;
    }

    .order-detail .order-block li {
        width: 50%;
        float: left;
        list-style-type: none;
        border-radius: 13px;
        position: relative;
        z-index: 3;
    }

    .order-detail .order-block .tip {
        font-size: 12px;
        padding-top: 10px;
        color: #717171;
    }

    .order-detail .order-block.progress-1 li:nth-child(1),
    .order-detail .order-block.progress-2 li:nth-child(1),
    .order-detail .order-block.progress-3 li:nth-child(1),
    .order-detail .order-block.progress-4 li:nth-child(1),
    .order-detail .order-block.progress-5 li:nth-child(1) {
        color: #fff;
    }

    .order-detail .order-block.progress-2 li:nth-child(2),
    .order-detail .order-block.progress-3 li:nth-child(2),
    .order-detail .order-block.progress-4 li:nth-child(2),
    .order-detail .order-block.progress-5 li:nth-child(2) {
        color: #fff;
    }

    .order-detail .order-block.progress-3 li:nth-child(3),
    .order-detail .order-block.progress-4 li:nth-child(3),
    .order-detail .order-block.progress-5 li:nth-child(3) {
        color: #fff;
    }

    .order-detail .order-block.progress-4 li:nth-child(4),
    .order-detail .order-block.progress-5 li:nth-child(4) {
        color: #fff;
    }

    .order-detail .td__order-price {
        width: 200px;
        display: inline-block;
    }

    .order-head {
        width: 100%;
        padding: 12px 20px;
        margin-top: 60px;
        /* margin-bottom: 20px; */
        /* border-bottom: 1px solid #eef1f5; */
    }

    .order-head:not(:first-child) {
        margin-top: 0;
    }

    .order-head .title {
        position: relative;
        font-size: 1.5rem;
        color: #333;
    }

    .order-head .title::before {
        content: '';
        position: absolute;
        width: 4px;
        height: 14px;
        background: #18bc9c;
        top: 4px;
        left: -12px;
    }

    .table-responsive .table > tbody > tr > td {
        text-align: center;
        vertical-align: middle;
        color: #676767;
    }

    .ordertext {
        margin: 0 30px;
    }

    .table-bordered {
        border: 1px solid #e8edf0;
    }

    .table-bordered > thead > tr > th,
    .table-bordered > tbody > tr > th,
    .table-bordered > tfoot > tr > th,
    .table-bordered > thead > tr > td,
    .table-bordered > tbody > tr > td,
    .table-bordered > tfoot > tr > td {
        border: 1px solid #e8edf0;
    }

    .table thead tr {
        background: #f8f9fb;
    }

    .order_price span {
        width: 70px;
        display: inline-block;
        text-align: right;
    }
</style>
<div class="order-detail">
    <ul class="order-block progress-{$row.status}">
        <li>
            <span>Create time</span>
            <div class="tip">{$row.createtime?datetime($row.createtime):''}</div>
        </li>
        <li>
            <span>Pay time</span>
            <div class="tip">{$row.pay_time?datetime($row.pay_time):''}</div>
        </li>
    </ul>
</div>

<div class="row">
    <div class="col-md-12">
        <div class="panel panel-default">
            <div class="panel-heading">Order info</div>
            <div class="panel-body">
                <p><span>Order no：</span><small>{$row.order_no}</small></p>
                <table class="table table-bordered">
                    <thead>
                    <tr>
                        <th class="text-center">
                            <div class="th-inner">Shop</div>
                        </th>
                        <th class="text-center">
                            <div class="th-inner">Type</div>
                        </th>
                        <th class="text-center">
                            <div class="th-inner">Board number</div>
                        </th>
                        <th class="text-center">
                            <div class="th-inner">Number</div>
                        </th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr>
                        <th class="text-center">
                            <div class="th-inner">{$row.shop.name}</div>
                        </th>
                        <th class="text-center">
                            <div class="th-inner">
                                {$row.type}
                            </div>
                        </th>
                        <th class="text-center">
                            <div class="th-inner">{$row.board_number}</div>
                        </th>
                        <th class="text-center">
                            <div class="th-inner">
                                {$row.number}
                            </div>
                        </th>
                    </tr>
                    </tbody>
                    <tfoot>
                    <tr>
                        <th colspan="10" style="text-align: right;">

                            <span class="ordertext">Pack fee amount: <samp class="text-red">{$row.pack_fee_amount}</samp></span>
                            <span class="ordertext">Amount: <samp class="text-red">{$row.amount}</samp></span>
                            <span class="ordertext">Discount Amount:
                                <samp class="text-red">{$row.discount_amount}</samp> </span>
                            <span class="ordertext">Real amount：<samp class="text-red">{$row.real_amount}</samp></span>

                        </th>
                    </tr>
                    </tfoot>
                </table>
                <div style="color: #333;">

                    <p style="margin-bottom: 15px;">Pay type：
                        <span class="label label-info">{$row.pay_type}</span>
                    </p>
                    <p style="margin-bottom: 15px;">Transaction status：
                        {if condition="$row.status neq 100"}
                        Paid for
                        {else}
                        Not paid for
                        {/if}
                    </p>
                    <p style="margin-bottom: 15px;">Remark：
                        {$row.remark}
                    </p>
                </div>
            </div>
        </div>
        <div class="panel panel-default">
            <div class="panel-heading">Goods info</div>
            <div class="panel-body">

                <table class="table table-bordered">
                    <thead>
                    <tr>
                        <th class="text-center">
                            <div class="th-inner">Goods name</div>
                        </th>
                        <th class="text-center">
                            <div class="th-inner">Image</div>
                        </th>
                        <th class="text-center">
                            <div class="th-inner">Sku</div>
                        </th>
                        <th class="text-center">
                            <div class="th-inner">Type</div>
                        </th>
                        <th class="text-center">
                            <div class="th-inner">Pack fee</div>
                        </th>
                        <th class="text-center">
                            <div class="th-inner">Sum pack fee</div>
                        </th>
                        <th class="text-center">
                            <div class="th-inner">Price</div>
                        </th>
                        <th class="text-center">
                            <div class="th-inner">Sku price</div>
                        </th>
                        <th class="text-center">
                            <div class="th-inner">Find price</div>
                        </th>
                        <th class="text-center">
                            <div class="th-inner">Number</div>
                        </th>
                        <th class="text-center">
                            <div class="th-inner">Amount</div>
                        </th>
                        <th class="text-center">
                            <div class="th-inner">Remark</div>
                        </th>
                    </tr>
                    </thead>
                    <tbody>
                    {foreach name="$row.goods" item="v"}
                        <tr  >
                            <th class="text-center">
                                <div class="th-inner" style="line-height: 50px;">{$v.goods_name}</div>
                            </th>
                            <th class="text-center">
                                <div class="th-inner">
                                    <img src="{$v.goods_image}" style="height: 50px;" alt="">
                                </div>
                            </th>
                            <th class="text-center">
                                <div class="th-inner" style="line-height: 50px;">{$v.difference}</div>
                            </th>
                            <th class="text-center">
                                <div class="th-inner" style="line-height: 50px;">
                                    {$v.type_text}
                                </div>
                            </th>
                            <th class="text-center">
                                <div class="th-inner" style="line-height: 50px;">
                                    {$v.pack_fee}
                                </div>
                            </th>
                            <th class="text-center">
                                <div class="th-inner" style="line-height: 50px;">
                                    {$v.sum_pack_fee}
                                </div>
                            </th>
                            <th class="text-center">
                                <div class="th-inner" style="line-height: 50px;">
                                    {$v.price}
                                </div>
                            </th>
                            <th class="text-center">
                                <div class="th-inner" style="line-height: 50px;">
                                    {$v.sku_price}
                                </div>
                            </th>
                            <th class="text-center">
                                <div class="th-inner" style="line-height: 50px;">
                                    {$v.find_price}
                                </div>
                            </th>
                            <th class="text-center" >
                                <div class="th-inner" style="line-height: 50px;">
                                    {$v.number}
                                </div>
                            </th>
                            <th class="text-center" >
                                <div class="th-inner" style="line-height: 50px;">
                                    {$v.sum_price}
                                </div>
                            </th>
                            <th class="text-center" >
                                <div class="th-inner" style="line-height: 50px;">
                                    {$v.remark}
                                </div>
                            </th>
                        </tr>
                    {/foreach}

                    </tbody>

                </table>

            </div>
        </div>
    </div>


